<%--
  Created by IntelliJ IDEA.
  User: pzw
  Date: 2015/4/1
  Time: 15:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%@include file="../includes/head.jsp" %>
    <title>${menu.menuName}</title>
    <% String caseId = (String)session.getAttribute("caseId"); %>
</head>
<body class="page-header-fixed page-quick-sidebar-over-content">
<%@include file="../includes/top.jsp" %>
<div class="page-container">
    <%@include file="../includes/sidebar.jsp" %>
    <div class="page-content-wrapper">
        <div class="page-content">
            <%@include file="../includes/current.jsp" %>
            <div class="row">
                <div class="col-md-12">
                    <div class="portlet">
                        <div class="portlet-body">
                            <table class="table table-bordered table-striped table-hover"
                                   style="margin-left: auto;margin-right: auto;min-width: 600px; width: 800px">
                                <thead>
                                    <tr>
                                        <td width="20%" style="text-align: center">判定项</td>
                                        <td width="10%" style="text-align: center">下限</td>
                                        <td width="10%" style="text-align: center">上限</td>
                                        <td width="20%" style="text-align: center">结果数据</td>
                                        <td width="20%" style="text-align: center">判定结果</td>
                                    </tr>
                                </thead>
                                <c:forEach items="${reportList}" var="record">
                                    <tbody>
                                        <tr>
                                            <td style="text-align: center" valign="middle">${record.judgeItem}</td>
                                            <td style="text-align: center" valign="middle">${record.lowLimit}</td>
                                            <td style="text-align: center" valign="middle">${record.heightLimit}</td>
                                            <td style="text-align: center" valign="middle">${record.result}</td>
                                            <td style="text-align: center" valign="middle">${record.judgeName}</td>
                                        </tr>
                                    </tbody>
                                </c:forEach>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row" id="resultDiv" style="min-height: 200px">
                <div class="col-md-8 col-md-offset-1">
                    <ul id="result">
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<%@include file="../includes/footer.jsp" %>
<%@include file="../includes/bottomscript.jsp" %>
<script type="text/javascript"
        src="<c:url value="/js/bower_components/DataTables/media/js/jquery.dataTables.min.js"/>"></script>
<script type="text/javascript"
        src="<c:url value="/js/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.js"/>"></script>
<script type="text/javascript"
        src="<c:url value="/js/bower_components/ztree_v3/js/jquery.ztree.core-3.5.min.js"/>"></script>
<script type="text/javascript"
        src="<c:url value="/js/bower_components/ztree_v3/js/jquery.ztree.excheck-3.5.min.js"/>"></script>
<script>
    $(document).ready(function(){
    <%if(caseId == null){%>
        toast.error("当前方案为空，请选择方案");
        setTimeout(function () {
            window.location.href = basePath + "power/power?menuId=12";
        }, 1200);
    <%}%>
    });

</script>
</body>
</html>
